﻿package jokers.JAdv {
	import jokers.*;
	import jokers.JAdv.*;
	
	public class JChapter0 extends JChapter {
		//初始化章节
		public override function initChapter():void{
			JPara.timer_total = 61;
			JPara.crystalNum = 7;
					
			JPara.m_search.visible = false;
			JPara.m_refresh.visible = false;
		}
		
		//特殊关卡会要求刷新特殊数据
		public override function run():void{
			JPara.power = 0;
		}
		
		//是否胜利
		public override function isWin():Boolean{
			for(var i:int = 0 ; i < 7 ; i++){
				if(JPara.num_crystal[i] == 0){
					return false;
				}
			}
			return true;
		}
		
		//文字版提醒
		public override function showTips():String{
			var ret:String = "";
			
			ret = "未消除的颜色：";
			if(JPara.num_crystal[0] == 0) ret += "黄 ";
			if(JPara.num_crystal[1] == 0) ret += "白 ";
			if(JPara.num_crystal[2] == 0) ret += "蓝 ";
			if(JPara.num_crystal[3] == 0) ret += "红 ";
			if(JPara.num_crystal[4] == 0) ret += "粉 ";
			if(JPara.num_crystal[5] == 0) ret += "橙 ";
			if(JPara.num_crystal[6] == 0) ret += "绿 ";
			
			return ret;
		}
	}
	
}
